package slotions;

import java.util.LinkedList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 黎鹤舞
 * Date: 2023-12-14
 * Time: 17:34
 */
public class Solution {
    public int removeElement(int[] nums, int val) {
        LinkedList<Integer> list =  new LinkedList<>();
        //把数组放到链表当中
        for(int x : nums) {
            list.add(x);
        }
        int len = list.size();
        return len;
    }
}
